{{include file="default/Public/header.html"}}
<div id="pageTop">
	<div class="tabs"> 
		<ul>
			<li><a href="{{U url='fad/manage'}}" {{if $action_name=="manage"}} class="selected" rel="tabsContent1"{{/if}}>管理广告</a></li>
			<li><a href="{{U url='fad/add' }}" {{if $action_name=="add"}} class="selected" rel="tabsContent1"{{/if}}>添加广告</a></li>
		</ul>		
	</div>
</div>
<div id="pageCo">
	<div class="listForm">
		<table cellpadding="0" cellspacing="0">
			<thead>
				<tr>
					<th width="50">ID</th>
				    <th>名称</th>
				    <th width="120">类型</th>
				    <th width="200">时间限制</th>
				    <th width="200">操作</th>
				</tr>
			</thead>
			<tbody>
				{{foreach from=$data.info item=v}}
				  <tr>
				    <td>{{$v.aid}}</td>
				    <td>{{$v.name}}</td>
				    <td>
				    {{if $v.type=='banner'}}
				    数字Banner轮播
				    {{elseif $v.type=='iview'}}
				    iview轮播
				    {{elseif $v.type=='banner_p'}}
				    图片Banner轮播
                    {{elseif $v.type=='image_d'}}
				    首页对联广告
				    {{elseif $v.type=='banner_t'}}
				    缩略图Banner轮播
				    {{elseif $v.type=='image'}}
				    图片
				    {{elseif $v.type=='flash'}}
				    FLASH
				    {{elseif $v.type=='html'}}
				    文本
				    {{elseif $v.type=='link'}}
				    文字链接
				    {{/if}}
				    </td>  
				    <td>{{$v.starttime|truncate:10:""}} 至 {{$v.endtime|truncate:10:""}}</td>  
				    <td>
				    <a href='{{U url="fad/preview?aid=`$v.aid`"}}' target="_blank">预览</a> | 
				    <a href='{{U url="fad/edit?aid=`$v.aid`"}}'>管理</a> | 
				    <a href='{{U url="fad/delete?aid=`$v.aid`"}}' onclick="return window.confirm('此操作不可恢复，你确定要删除该广告？');">删除</a></td>
				  </tr>  
				  {{/foreach}}
			</tbody>
		</table>	
	</div>
</div>
{{include file="default/Public/footer.html"}}